#include "widget.h"
#include "ui_widget.h"
#include <QButtonGroup>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QButtonGroup* g1 = new QButtonGroup(this);
    QButtonGroup* g2 = new QButtonGroup(this);
    QButtonGroup* g3 = new QButtonGroup(this);
    QButtonGroup* g4 = new QButtonGroup(this);
    QButtonGroup* g5 = new QButtonGroup(this);

    g1->addButton(ui->radioButton_1_no);
    g1->addButton(ui->radioButton_1_yes);

    g2->addButton(ui->radioButton_2_no);
    g2->addButton(ui->radioButton_2_yes);

    g3->addButton(ui->radioButton_3_no);
    g3->addButton(ui->radioButton_3_yes);

    g4->addButton(ui->radioButton_4_no);
    g4->addButton(ui->radioButton_4_yes);

    g5->addButton(ui->radioButton_5_no);
    g5->addButton(ui->radioButton_5_yes);
}

Widget::~Widget()
{
    delete ui;
}

